package py.com.alfa.escriba.web.rest.secure;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import py.com.alfa.escriba.exception.ServiceException;
import py.com.alfa.escriba.persistence.dto.admin.PersonaDTO;
import py.com.alfa.escriba.web.rest.EscribaService;

@Path(EscribaService.SECURE_PATH + "/personas")
public interface PersonaSecureRESTService {
	
	@Path("/obtenerPersona/{id}")
	@GET
	@Produces(MediaType.APPLICATION_JSON)	
	public PersonaDTO   obtenerPersona(@PathParam("id")Long id) throws ServiceException;
	
	@Path("/crearPersona")
	@POST
	@Consumes(MediaType.APPLICATION_JSON)
	@Produces(MediaType.APPLICATION_JSON)	
	public PersonaDTO crearPersona(PersonaDTO dto) throws ServiceException;

}
